var AV = require("leanengine");

function avClass(classname, title) {
  var avObject = AV.Object.extend(classname);
  avObject.k_name = classname;
  avObject.k_title = title;
  return avObject;
}

module.exports = {
  UserRole: avClass('UserRole', '用户角色'),
  Role: avClass('KRole', '角色'),
  User: avClass('KUser', '用户')
};